3.122 \(\int \frac{\sin (a+\frac{b}{x^2})}{x^3} \, dx\)

Optimal. Leaf size=15 \[ \frac{\cos \left (a+\frac{b}{x^2}\right )}{2 b} \]

[Out]

Cos[a + b/x^2]/(2*b)

________________________________________________________________________________________

Rubi [A]  time = 0.0157894, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {3379, 2638} \[ \frac{\cos \left (a+\frac{b}{x^2}\right )}{2 b} \]

Antiderivative was successfully verified.

[In]

Int[Sin[a + b/x^2]/x^3,x]

[Out]

Cos[a + b/x^2]/(2*b)

Rule 3379

Int[(x_)^(m_.)*((a_.) + (b_.)*Sin[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplif
y[(m + 1)/n] - 1)*(a + b*Sin[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IntegerQ[Simpl
ify[(m + 1)/n]] && (EqQ[p, 1] || EqQ[m, n - 1] || (IntegerQ[p] && GtQ[Simplify[(m + 1)/n], 0]))

Rule 2638

Int[sin[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Cos[c + d*x]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin{align*} \int \frac{\sin \left (a+\frac{b}{x^2}\right )}{x^3} \, dx &=-\left (\frac{1}{2} \operatorname{Subst}\left (\int \sin (a+b x) \, dx,x,\frac{1}{x^2}\right )\right )\\ &=\frac{\cos \left (a+\frac{b}{x^2}\right )}{2 b}\\ \end{align*}

Mathematica [A]  time = 0.0140532, size = 15, normalized size = 1. \[ \frac{\cos \left (a+\frac{b}{x^2}\right )}{2 b} \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[a + b/x^2]/x^3,x]

[Out]

Cos[a + b/x^2]/(2*b)

________________________________________________________________________________________

Maple [A]  time = 0.003, size = 14, normalized size = 0.9 \begin{align*}{\frac{1}{2\,b}\cos \left ( a+{\frac{b}{{x}^{2}}} \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(a+b/x^2)/x^3,x)

[Out]

1/2*cos(a+b/x^2)/b

________________________________________________________________________________________

Maxima [A]  time = 0.942449, size = 18, normalized size = 1.2 \begin{align*} \frac{\cos \left (a + \frac{b}{x^{2}}\right )}{2 \, b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b/x^2)/x^3,x, algorithm="maxima")

[Out]

1/2*cos(a + b/x^2)/b

________________________________________________________________________________________

Fricas [A]  time = 1.67289, size = 38, normalized size = 2.53 \begin{align*} \frac{\cos \left (\frac{a x^{2} + b}{x^{2}}\right )}{2 \, b} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b/x^2)/x^3,x, algorithm="fricas")

[Out]

1/2*cos((a*x^2 + b)/x^2)/b

________________________________________________________________________________________

Sympy [A]  time = 4.29878, size = 20, normalized size = 1.33 \begin{align*} \begin{cases} \frac{\cos{\left (a + \frac{b}{x^{2}} \right )}}{2 b} & \text{for}\: b \neq 0 \\- \frac{\sin{\left (a \right )}}{2 x^{2}} & \text{otherwise} \end{cases} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b/x**2)/x**3,x)

[Out]

Piecewise((cos(a + b/x**2)/(2*b), Ne(b, 0)), (-sin(a)/(2*x**2), True))

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sin \left (a + \frac{b}{x^{2}}\right )}{x^{3}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(a+b/x^2)/x^3,x, algorithm="giac")

[Out]

integrate(sin(a + b/x^2)/x^3, x)